﻿<ResourceDictionary x:Class="XDraw.XDrawEditorDocResources" 
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:xdCore="clr-namespace:XDraw;assembly=XDraw2.Core"
                    xmlns:xd="clr-namespace:XDraw">

  <ToolBar x:Key="XDrawEditorDocToolBar" 
           xdCore:MergeMenus.HostId="ToolBarTray" xdCore:MergeMenus.Id="XDrawEditorDocToolBar"
           Visibility="{Binding Source={x:Static xd:XDrawEditorDocResources.Instance}, Path=ActiveEditorDoc, Converter={x:Static xdCore:ValueConverters.ObjectNotNullVisibity}}">

    <CheckBox xdCore:MergeMenus.Priority="20"
              ToolTip="Rectangle select mode"
              IsChecked="{Binding Source={x:Static xd:XDrawEditorDocResources.Instance}, Path=ActiveEditorDoc.LassoSelectMode, Converter={x:Static xdCore:ValueConverters.BoolInverse}}">
      R
    </CheckBox>
    <CheckBox xdCore:MergeMenus.Priority="20"
              ToolTip="Lasso select mode"
              IsChecked="{Binding Source={x:Static xd:XDrawEditorDocResources.Instance}, Path=ActiveEditorDoc.LassoSelectMode}">
      L
    </CheckBox>
  </ToolBar>

</ResourceDictionary>